import React, { lazy } from 'react'
import { createBrowserRouter } from 'react-router-dom'
const Home=lazy(()=>import('../Page/Home'))
const City=lazy(()=>import('../Page/City'))
const List=lazy(()=>import('../Page/List'))
const Detail=lazy(()=>import('../Page/Detail'))
const Message=lazy(()=>import('../Page/Message'))

export const router=createBrowserRouter([
    {path:'/',element:<Home/>},
    {path:'/city',element:<City/>},
    {path:'/list',element:<List/>},
    {path:'/detail/:id',element:<Detail/>},
    {path:'/message',element:<Message/>}
])